﻿package {		import flash.ui.KeyLocation;	public class KeyState {		var code:int;		var loc:uint;		var keyPressed:Boolean = false;				function KeyState(theCode:int, theLoc:uint) {			code=theCode;			loc=theLoc;		}				public function fireKeyDown():void {			keyPressed = true;		}				public function fireKeyUp():void {			keyPressed = false;		}				public function isDown():Boolean {			return keyPressed;		}	}}